package com.eastmoney.emis.edda.infrastructure.exception;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.domain.valueobject
 * @author: 汪程程
 * @date: 2022/10/12 4:05 PM
 * @version: 1.0
 */
public enum EddaExceptionStatus {

    ERROR(180000, "服务错误"),
    INVALID_EDDA_BIND(180001, "eDDA 绑定无效"),
    LIMIT_APPLY_WITHIN_SERVING_TIME(180002, "不允许在非服务时间内提交申请"),
    DUPLICATE_BIND(180003, "重复绑定"),
    INVALID_APPLY_INFO(180004, "信息错误"),
    INVALID_ACCOUNT_OR_ACCOUNT_TYPE(180005, "银行账号或账号类型错误，请重新输入"),
    UNMATCHED_ACCOUNT_INFO(180006, "银行账号和个人信息不匹配，请重新输入"),
    INVALID_DATA_FORMAT(180007, "数据长度或格式错误，请重新输入"),
    APPLY_OVER_LIMIT_DAILY(180008, "授权次数超过今日上限"),

    OTP_LIMIT(180100, "MPP04002:OTP regeneration exceeds daily limit"),
    OTP_INVALID(180101, "MPP04003:OTP confirmation code is invalid");


    private final Integer code;
    private final String message;

    EddaExceptionStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer code() {
        return code;
    }

    public String message() {
        return message;
    }
}
